package third;

import java.util.Scanner;

public class third_23 {
    public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a point with two coordinates: ");
		double x = input.nextDouble();
		double y = input.nextDouble();
		if(x<0)x=-x;
		if(y<0)y=-y;
		if(x<=5 && y<=2.5) {
			System.out.printf("Point (%.1f, %.1f) is in the rectangle", x, y);
		}else {
			System.out.printf("Point (%.1f, %.1f) is not in the rectangle", x, y);
		}
    }
}
